<?php
class MFormTextarea extends MFormElement {

    public function __construct($name, $form) {
        parent::__construct($name, $form);
        $this->setHtmlOption('class', 'form-txt');
    }

    public function render() {
//        $return = '<p>'.self::EOL;
        $return = '';
        if (!empty($this->_label)){
            $return .= self::TAB.'<label for="'.$this->getHtmlOption('name').'"'.(($this->getForm()->useFormee)?' class="form-lbl"':NULL).'>'.
                    $this->_label.(($this->_required)?'<span class="form-req"> * </span>':NULL).
                    '</label>'.self::EOL;
        }
        $return .= self::TAB.'<textarea'.$this->renderHtmlOptions().'>'.$this->_value.'</textarea>'.self::EOL;
//        $return .= '</p>'.self::EOL;
        return $return;
    }

}
?>
